<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="${pageContext.request.contextPath }/resources/css/faq.css" type="text/css" />
<script src="//cdn.ckeditor.com/4.4.2/full/ckeditor.js"></script><!-- 웹에디터 ckeditor CDN방식 연결 -->
</head>
<body>

<!-- 웹 에디터 추가 부분 from 안성모 -->
<hr />
<form action="regFaq.ga" method="post"><%-- action --%>
      글 제목:<input type="text" name="faq_subject" size="80" />
    <textarea name="faq_content" id="editor1" rows="10" cols="80">
    </textarea>
    <script>
        CKEDITOR.replace( 'editor1' );
    </script>
    <input type="submit" class="bigBtn" />
</form>
<div>글 목록</div>
<hr />
<div class="list_title">
    <div class="list_no">no</div>
    <div class="list_subject">제목</div>
    <div class="list_count">조회수</div>
    <div class="list_regdate">작성일</div>
</div>
<c:forEach var="record" items="${list }">
<div class="list_rows">
    <div class="list_no">${record.faq_no }</div>
    <div class="list_subject"><a href="readFaqForApp?num=${record.faq_no}"> ${record.subject } </a></div>
    <div class="list_count">${record.count }</div>
    <div class="list_regdate">${record.regdate }</div>
</div>
<br />
</c:forEach>
</body>
</html>